package com.zhengxing.jienci.web.annotation;

import java.lang.annotation.*;

/**
 * @author 浪遏飞舟
 * @create 2020-04-13 9:28
 * controller层参数校验
 */
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.PARAMETER)
@Documented
public @interface DataCheck {
    //校验的key
    String[] value();

    //key对应的提示信息
    String[] message() default {};

    //是否校验空串
    boolean isCheckEmpty() default true;
}
